﻿using JESAI.EventBus.Attributes;
using JESAI.EventBus.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace JESAI.EventBus.Contexts
{
    public class BaseEventExecuteContext
    {
        internal BaseEventExecuteContext(IEvent @event
        , MethodInfo handleMethod
        , EventSubscribeAttribute attribute)
        {
            Event = @event;
            handleMethod = handleMethod;
            Attribute = attribute;
        }
        public IEvent Event { get; }

        public MethodInfo HandleMethod { get; }

        public EventSubscribeAttribute Attribute { get; }
    }
}
